namespace ValidationFramework.Configuration
{
    /// <summary>
    /// Defines the signature for retrieving an error message for a validator.
    /// </summary>
    public interface IErrorMessageProvider
    {

		/// <summary>
		/// Retrieve an error message.
		/// </summary>
		/// <param name="rule">The rule who's localized error message we want to look up.</param>
		/// <param name="targetName">The member/parameter/type/etc. name this validator is applied to.</param>
		/// <returns>An error message.</returns>
		string RetrieveErrorMessage(Rule rule, string targetName, string descriptorType);

    }
}